package com.ynny.interfance_.demo02;

public class VehicleTest {

    public static void main(String[] args) {

        //不允许
//        new BaseVehicle();
        //不允许
//        new IPower();
        BaseVehicle baseVehicle = new Car();
        baseVehicle.run();


        IPower power = new Car();
        power.power();
    }
}
